package com.cloud.order.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* (TxException) 实体类
*
* @author zhangxun
* @since 2020-08-24
*/
@Data
@TableName(value = "tx_exception")
public class TxException implements Serializable {
    private static final long serialVersionUID=1L;
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("group_id")
    private String groupId;

    @TableField("uniid")
    private String uniid;

    @TableField("mod_id")
    private String modId;

    @TableField("transaction_state")
    private Integer transactionState;

    @TableField("registrar")
    private Integer registrar;

    /*** 0 待处理 1已处理*/
    @TableField("ex_state")
    private Integer exState;

    /*** 备注*/
    @TableField("remark")
    private String remark;

    @TableField("create_time")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}